package com.bawei.yangzongcai___chenmei.SlindingMenu;



import android.media.MediaPlayer;
import android.view.View;

import com.bawei.yangzongcai___chenmei.MVC.BsaeActivity;
import com.bawei.yangzongcai___chenmei.R;

public class SlingMenuActivity4 extends BsaeActivity {

    private com.bawei.yangzongcai___chenmei.BaseAddter.ShipingPlay shipin;
    private com.bawei.yangzongcai___chenmei.BaseAddter.ShipingPlay2 shipin2;
    private android.widget.Button diyipler;
    private android.widget.Button dierpler;
    private android.widget.Button diyiguan;
    private android.widget.Button dierguan;

    @Override
    public int bandLayout() {
        return R.layout.activity_sling_menu4;
    }

    @Override
    public void initView() {

        shipin = findViewById(R.id.shipin);
        shipin2 = findViewById(R.id.shipin2);
        diyipler = findViewById(R.id.diyipler);
        dierpler = findViewById(R.id.dierpler);
        diyiguan = findViewById(R.id.diyiguan);
        dierguan = findViewById(R.id.dierguan);
    }

    @Override
    public void initDate() {

       diyipler.setOnClickListener(new View.OnClickListener() {
           @Override
           public void onClick(View v) {
               shipin.Plays("http://vd3.bdstatic.com/mda-jafpz6yvu2g4r5rj/mda-jafpz6yvu2g4r5rj.mp4?playlist=%5B%22hd%22%2C%22sc%22%5D");
           }
       });

       dierpler.setOnClickListener(new View.OnClickListener() {
           @Override
           public void onClick(View v) {
               shipin2.Plays2("http://vd3.bdstatic.com/mda-mgmcixp7duazpd9w/360p/h264/1626943915199226289/mda-mgmcixp7duazpd9w.mp4");
           }
       });
    }
}
